//
//  MTParseXMLObject.m
//  ASITest
//
//  Created by zrz on 11-7-15.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "MTParseXMLObject.h"


@implementation MTParseXMLObject

@synthesize obj , superObj , document;

+ (id)objWithPoint:(void*)tObj Super:(id)tSuperObj Document:(id)doc
{
	return [[[MTParseXMLObject alloc] 
			 initWithPoint:tObj 
					 Super:tSuperObj
				  Document:doc]
			autorelease];
}

- (id)initWithPoint:(void*)tObj Super:(id)tSuperObj Document:(id)doc
{
	if (self = [super init]) {
		obj = tObj;
		superObj = tSuperObj;
		document = doc;
	}
	return self;
}

- (MTParseXMLObject*)next
{
	return nil;
}

- (MTParseXMLObject*)prev
{
	return nil;
}

- (MTParseXMLObject*)child
{
	return nil;
}
- (MTParseXMLObject*)parent
{
	return nil;
}
- (NSString*)name
{
	return nil;
}

- (MTParseXMLObject*)last
{
	return nil;
}

- (xmlElementType)type
{
	return XML_ELEMENT_NODE;
}

- (BOOL)isEquelToXMLObj:(MTParseXMLObject*)comObj
{
	if (!comObj) {
		return NO;
	}
	return self.obj == comObj.obj;
}

- (BOOL)isEmpty
{
	if (!self.obj) {
		return YES;
	}else {
		return NO;
	}

}

@end
